package com.hwua.view;

import com.hwua.tqm.FatherFrame;
import com.hwua.tqm.Theme;
import com.hwua.tqm.UserViewDemo1;
import com.hwua.tqm.UserViewDemo2;

/**
 * @author CQY
 */
public class StartView {
    public StartView(String userName) {
        // 使用主题进行美化
        Theme.useTheme(6);
        String[] btnNames = {"用户管理", "我的管理","教师管理","教师报表","学生管理","课程管理","学生成绩"};
        Object[] objs = {new UserView(), new UserViewDemo2(),
                new TeacherView(),new TeacherReportView(),new StudentView(),new CourseView(),new ScoreView()};
        FatherFrame jp = new FatherFrame(btnNames, objs);
        //设置标题
        jp.setTitle("欢迎"+userName+"来到学生成绩管理系统");
    }
}
